package com.mmall.dao;

import com.mmall.pojo.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    Category selectByPrimaryKey(Integer id);

    List<Category> selectAll();

    int updateByPrimaryKey(Category record);

    List<Category> selectCategoryByParentId(Integer parentId);

    int updateCategoryNameByPrimaryKey(@Param("categoryId") Integer categoryId, @Param("categoryName") String categoryName);


}